package xyz.xiezc.ioc.common;

import java.lang.annotation.Annotation;

/**
 * @author wb-xzc291800
 * @date 2019/03/29 14:24
 */
public class BeanDefine<T extends Annotation> {

    /**
     * 被注入容器的bean的注解
     */
    T annotation;

    private String name;

    private Class<?> tClass;

    private Object bean;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class<?> gettClass() {
        return tClass;
    }

    public void settClass(Class<?> tClass) {
        this.tClass = tClass;
    }

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    public T getAnnotation() {
        return annotation;
    }

    public void setAnnotation(T annotation) {
        this.annotation = annotation;
    }
}
